<!--
 * @FilePath     : /study_code/layui/13-2-13.html
 * @Description  : layui, table, loading 配置项，是否显示加载条。
 * @Date         : 2025-04-07 17:14:25
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-08 13:28:43
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <table id="demo" lay-filter="test"></table>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/table/common.js"></script>
    <script>
      var table = layui.table

      table.render({
        elem: '#demo',
        cols: cols,
        data: tableData,

        // url: '/table/1302.json',
        /**
         * @key loading
         * @brief: 是否显示加载条
         * @value {boolean}
         * true （默认）显示加载条
         * false 不显示加载条
         * !若为 false，则在切换分页时，不会出现加载条。该参数只适用于 使用url 参数开启时生效
         */
        loading: true,
        // , loading: false
      })
    </script>
  </body>
</html>